﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BuddhistSchools.DTO.Models;

namespace BuddhistSchools.BUS
{
    public static class Pagoda_Bus
    {
        public static List<Pagoda> GetListProvince(int provinceID, string key)
        {
            if (provinceID == 0) return new Pagoda().GetListPagoda(key);
            else return new Pagoda().GetListPagoda(provinceID, key);
        }
        public static bool Them(Pagoda pagoda)
        {
            return new Pagoda().Them(pagoda);
        }
        public static bool Sua(Pagoda pagoda)
        {
            return new Pagoda().Sua(pagoda);
        }
    }
}
